package com.qf.bbapi.controller;

import com.qf.bbapi.entity.TeaType;
import com.qf.bbapi.service.intf.TeaTypeService;
import com.qf.bbapi.vo.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author wodexinhuai
 * @create 2022-07-01-19:44
 */
@RestController
@RequestMapping("/api/teatype/")
@Api(tags = "茶品种类")
@CrossOrigin
public class TeaTypeController {
    @Resource
    private TeaTypeService service;

    @GetMapping("all.do")
    public R all(){
       return service.all();
    }
}
